package juc.immutable;

/**
 * @author fangbin
 * @desc
 * @date 2020/6/16 21:27
 */
public class StringFinal {
    public static void main(String[] args) {
        String a = "wukong2";
        final String b = "wukong";
        String d = "wukong";
        String c = b+2;
        String e = d+2;
        System.out.println((a==c));
        System.out.println(a==e);
    }
}
